import org.apache.zookeeper.AsyncCallback;

/**
 * @ClassName CreateCallBack
 * @Description TODO
 * @Author BossZ
 * @Version 1.0
 * @Date 2019/1/16-11:41
 **/
public class CreateCallBack implements AsyncCallback.StringCallback {

    @Override
    public void processResult(int i, String path, Object ctx, String name) {
        System.out.println("创建节点："+path);
        System.out.print((String)ctx);
    }
}
